package drafts_config

import (
	"net/http"
	"news_for_deepseek_interface/model"
	"news_for_deepseek_interface/model/drafts"

	"github.com/gin-gonic/gin"
)

func Detail(c *gin.Context) {
	db := model.GetInstance().DB

	var draftsConfig drafts.DraftsConfigModel
	db.Model(&drafts.DraftsConfigModel{}).First(&draftsConfig)

	c.JSON(http.StatusOK, gin.H{
		"code": 0,
		"msg":  "success",
		"data": draftsConfig,
	})
}
